<?php
	// Obtengo los datos del Sponsor, si existe
	$sponsor = $this->Session->read('SponsorClienteLogueado');

	// Defino si existe Branding de un Sponsor
	if(!empty($sponsor)){
		$mostrar_branding = "display:block; height: 68px;";
		$altura_contenido = 68;
	}else{
		$mostrar_branding = "display:none; height: 0px";
		$altura_contenido = 0;
	}

	// Defino si existe Skyscraper
	if($this->Session->read('ClientesUsuarioLogueado.skyscraper') == "S"){
		$mostrar_skyscraper = "display:block;";
		$ancho_contenido = "66%";
	}else{
		$mostrar_skyscraper = "display:none;";
		$ancho_contenido = "76%";
	}
?>
<?php header("Content-type: text/html; charset=utf-8");?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta property="og:title" content="Epicrisis - Historia Cl&#xed;nica Electr&#xf3;nica" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.facebook.com/epicrisis" />
<meta property="og:image" content="http://www.epicrisisweb.com/images/iso-footer.png" />
<meta property="og:site_name" content="Epicrisis" />
<meta property="fb:admins" content="1038596663" />
	<?php echo $this->Html->charset(); ?>
	<meta http-equiv="X-UA-Compatible" content="IE=8" />
	<title>
		<?php __('Epicrisis'); ?>
		<?php //echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');
		echo $this->Html->css('reset');
		echo $this->Html->css('epicrisis2');
		$custom_css = $this->Session->read('Client.custom_css');
		if(isset($custom_css)){ 
			echo $this->Html->css($custom_css); 
		} else {
			echo $this->Html->css('epicrisis_color_default');		
		}

		echo $this->Html->css('calendar');
		echo $this->Html->css('start/jquery-ui-1.8.18.custom');

		echo $this->Html->css('chosen');

		echo $html->meta('icon','/images/favicon.ico', array('type' =>'icon'));

		echo $javascript->link('prototype-1.7');
		echo $javascript->link('scriptaculous');
		echo $javascript->link('jquery.tools.min.js'); // Incluye jQuery 1.6.4, Tabs, Tooltip, Scrollable, Overlay
		echo $javascript->link('jquery-ui-1.8.18.custom.min');

		echo $javascript->link('jquery.tipsy');
		echo $javascript->link('jquery.tablesorter.min'); 		
		echo $javascript->link('jquery.lightbox-0.5.pack'); 
		echo $javascript->link('epicrisiscore');
		echo $javascript->link('history/html4+html5/jquery.history');		
	?>
</head>
<body>
<script type="text/javascript">$j = jQuery.noConflict();</script>
<div id="cargando" style="position: fixed; display:none;"><p><?php __('Cargando'); ?>&nbsp;<img src="/images/cargando.gif"></p></div>

<div id="encabezado_gral2">
	<div id="encabezado2"> 
		<div id="logo">
			<?php 
				$logo = $this->Session->read('Client.logo');
				if(!empty($logo)){ $logo = $this->webroot.'uploads/'.$logo;	} else { $logo = '/images/logo-epicrisis-white.png'; }
			?>
			<a href="/dashboards"><img src="<?php echo $logo;?>" style='width:140px; max-height:44px;'></a>
		</div>
		<div id="accesos">
			<ul>
				<li><?php echo $ajax->link(__('Consultar Reporte', true),'/consoles/reportes', array( 'update' => 'panel_derecho', 'indicator' => 'cargando', 'class' => 'btn btn-warning', 'escape'=> false));?></li>
				<li><a href="javascript:CerrarSesion()" class="btn" style="margin-right: 10px"><?php echo __('Cerrar Sesión')?></a></li>

			</ul>
		</div>

		
	</div>
</div>
<div id="contenedor" style="width: 100%;">
	<div id="panel_izquierdo" style="width: 15%; display:block; ">

		<div id="titulo_azul" style="padding: 3px 0px; height: 20px; font-size: 110%;margin-top: 1px;"><span>Filtrar por</span></div>
		<ul>
			<li style="border-bottom: 0px solid grey;padding: 6px 0px;">
				<input type="checkbox" style="width: 15px" class="filtros" value="1" onclick="FiltrarConcola();"><?php echo __('Evoluciones',true)?><br/>
				<input type="checkbox" style="width: 15px" class="filtros" value="2" onclick="FiltrarConcola();"><?php echo __('Medicaciones',true)?><br/>
				<input type="checkbox" style="width: 15px" class="filtros" value="3" onclick="FiltrarConcola();"><?php echo __('Prácticas',true)?><br/>
				<input type="checkbox" style="width: 15px" class="filtros" value="4" onclick="FiltrarConcola();"><?php echo __('Problemas',true)?><br/>
				<input type="checkbox" style="width: 15px" class="filtros" value="8" onclick="FiltrarConcola();"><?php echo __('Recomendaciones',true)?><br/>
				<input type="checkbox" style="width: 15px" class="filtros" value="5" onclick="FiltrarConcola();"><?php echo __('Resultados',true)?><br/>
				<input type="checkbox" style="width: 15px" class="filtros" value="6" onclick="FiltrarConcola();"><?php echo __('Signos Vitales',true)?><br/>
				<input type="checkbox" style="width: 15px" class="filtros" value="7" onclick="FiltrarConcola();"><?php echo __('Turnos',true)?><br/>
				<input type="checkbox" style="width: 15px" class="filtros" value="9" onclick="FiltrarConcola();"><?php echo __('Archivos Adjuntos',true)?><br/>
				<input type="checkbox" style="width: 15px" class="filtros" value="10" onclick="FiltrarConcola();"><?php echo __('Pacientes',true)?><br/>
				<input type="checkbox" style="width: 15px" class="filtros" value="11" onclick="FiltrarConcola();"><?php echo __('Clientes',true)?><br/>
				<input type="checkbox" style="width: 15px" class="filtros" value="12" onclick="FiltrarConcola();"><?php echo __('Usuarios',true)?><br/>
			</li>

			<li><span class="btn btn-inverse disabled">Periodo de Tiempo</span></li>
			<li style="border-bottom: 0px solid grey;padding: 6px 0px;">
				<label for="fromConsole">Desde</label>
				<input type="text" id="fromConsole" name="fromConsole" value="<?php echo date("d/m/Y", mktime ( 0 , 0 , 0, date("m")-1, date("d"), date("Y")))?>" />
				<label for="toConsole">Hasta</label>
				<input type="text" id="toConsole" name="toConsole" value="<?php echo date("d/m/Y")?>" />

			</li>


			<li><span class="btn btn-inverse disabled">Especialidad</span></li>
			<li style="border-bottom: 0px solid grey;padding: 6px 0px;">
				<input disabled type="checkbox" style="width: 15px">Todos<br/>
			</li>

		</ul>
	</div>
	<div id="panel_derecho" style="width: 83%;">
			<?php echo $this->Session->flash(); ?> 
			<?php echo $content_for_layout; ?>
	</div>
</div>
<div id="ventana_modal"></div>
<div id="dialog-message"></div>


<div id="footer">
	<?php echo $this->element('analytics'); ?>
</div>
</body>
</html>